// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

mod error;
mod serial_port;
mod utils;

fn main() {
    tauri::Builder::default()
        .invoke_handler(tauri::generate_handler![
            serial_port::active_port_name,
            serial_port::serial_port_is_open,
            serial_port::serial_port_open,
            serial_port::serial_port_close,
            serial_port::serial_port_write
        ])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}
